package cs236369.webserver.dynamicLoad;

import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.Properties;

public class DynamicClassLoader {
	public static Constructor<?> load(String fullyQualifiedName)
			throws IllegalArgumentException, SecurityException,
			InstantiationException, IllegalAccessException,
			InvocationTargetException, NoSuchMethodException,
			ClassNotFoundException {
		return Class.forName(fullyQualifiedName).getConstructor(Properties.class);
	}
}
